/**
 * Some comments... 
 * 
 * @id GLE__MODULE_ID__
 * @title OSG Sample application
 * @height 500
 * @description This is a OSG Generated application 
 * @singleton
 * @require opensocial-0.7
 * @require tabs
 * @require flash 
 * 
 * @templates templates/common
 * @templates templates/bar
 *
 * @initFunction onInit
 *
 */
 
function Simple() {
	this.parameter = "Object.parameter";
}

Simple.prototype.foo = function(el1, el2) {
	return "[foo:("+el1+","+el2+"]";
}

var $INSTANCE = {

	// function is called on "onLoad"
	onInit:function( data ) {
		
		var template = new osg.Template("bar.htm");
		
		template.add("list", [{name:"Jorge", id:1}, {name:"Falcão", id:2}]);
		template.add("mensagem", "Hello");
		
		template.show();
		
	},
	

	hello:function() {
		alert("hello!");
	},
	
	click:function(person) {
		alert(person.name);
	},

		
};